﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.ComponentModel;
using System.Web.Configuration;

namespace HttpAuth.Configuration
{
    public class HttpAuthUser : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "")]
        [TypeConverter(typeof(LowerCaseStringConverter))]
        [StringValidator]
        public string Name { get { return (string)this["name"]; } }

        [ConfigurationProperty("password", IsRequired = true, DefaultValue = "")]
        [StringValidator]
        public string Password { get { return (string)this["password"]; } }
    }
}
